package com.supergo.manager.feign;

import com.supergo.http.HttpResult;
import com.supergo.pojo.Brand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Classname ApiBrandFeign
 * @Description TODO
 * @Date 2020/10/26 14:29
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
@FeignClient("supergo-manager")
public interface ApiBrandFeign {

    @PostMapping(value = "/brand/query/{page}/{rows}")
    public HttpResult findPage(@RequestBody Brand brand, @PathVariable Integer page, @PathVariable Integer rows);

    @RequestMapping(value = "/brand/{brandId}")
    public Brand getBrandByid(@PathVariable Long brandId);

}
